package SA.teacher;

import android.app.*;
import android.content.*;
import android.os.Bundle;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class SAteacherActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);

		ImageView loginBtn = (ImageView) findViewById(R.id.login_btn);
		loginBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				EditText eTextID = (EditText) findViewById(R.id.eTextID);
				EditText eTextPW = (EditText) findViewById(R.id.eTextPW);

				String studentID = eTextID.getText().toString();
				String studentPW = eTextPW.getText().toString();
				login(studentID, studentPW);
			}
		});
	}

	void login(String studentID, String studentPW) {

		// if (studentID.equals("1111") && studentPW.equals("0000")) {

		Intent intent = new Intent(this, MainActivity.class);
		startActivity(intent);

		/*
		 * } else { new
		 * AlertDialog.Builder(SAstudentActivity.this).setTitle("濡쒓렇��)
		 * .setMessage("濡쒓렇�몄떎��").setCancelable(false) .setNegativeButton("�뺤씤",
		 * null).show(); }
		 */
	}
}